<template>
  <!-- 分页按钮，与elementUI相比添加了格式 ,但更简便的是在elreset.css中添加重置样式，所以这个组件封装没有意义-->
  <div class="bg-fff w100 flex aic jc-c box-page">
    <el-pagination
      background
      layout="prev, pager, next"
      :page-size="pageSize"
      :total="totalSize"
      :current-page.sync="currPage2"
      @current-change="$emit('jump')"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  props: ["pageSize", "totalSize", "currPage"],
  computed: {
    currPage2: {
      get() {
        return this.currPage;
      },
      set(num) {
        this.$emit("update:currPage", num);
      },
    },
  },
};
</script>

<style scoped>
.box-page {
  display: flex;
  width: 100%;
  height: 53px;
  align-items: center;
  justify-content: center;
  background-color: fff;
}
</style>